package com.yidu.hbatsams.dao;

import com.yidu.hbatsams.domain.AtsEmpCoachAthlete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsEmpCoachAthleteMapper {
    /**
     * 逻辑删除
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer caId);

    /**
     *新增
     * @mbg.generated 2019-10-29
     */
    int insert(AtsEmpCoachAthlete record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsEmpCoachAthlete record);

    /**
     * 根据ID查询
     * @mbg.generated 2019-10-29
     */
    AtsEmpCoachAthlete selectByPrimaryKey(Integer caId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsEmpCoachAthlete record);

    /**
     * 修改
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsEmpCoachAthlete record);

    /**
     * 根据教练ID查询运动员
     * @param coachId
     * @return
     */
    List<AtsEmpCoachAthlete> selectaths(Integer coachId);

    /**
     * 查询所有+模糊查询
     * @param coachName
     * @return
     */
    List<AtsEmpCoachAthlete> findAll(String coachName);

    /**
     * 查询行数
     * @return
     */
    Long count();

    /**
     * 查询教练运动员信息
     * @param athleteId
     * @param coachId
     * @return
     */
    AtsEmpCoachAthlete findAllMess(Integer athleteId, Integer coachId);

}